﻿namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 过站配置
    /// </summary>
    public class VViaSiteConfig : BaseVModel
    {
        private string _orderNo = string.Empty;
        private string _workOrderNo = string.Empty;
        private string _config = string.Empty;

        #region Public Property

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// 工单号
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// 配置JSON
        ///</Summary>
        public string Config
        {
            get { return string.IsNullOrWhiteSpace(_config) ? string.Empty : _config; }
            set { _config = value; }
        }
        #endregion

        private string _customerCode = string.Empty;
        private string _customerName = string.Empty;

        /// <summary>
        /// 客户代码
        /// </summary>
        public string CustomerCode
        {
            get { return string.IsNullOrWhiteSpace(_customerCode) ? string.Empty : _customerCode; }
            set { _customerCode = value; }
        }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName
        {
            get { return string.IsNullOrWhiteSpace(_customerName) ? string.Empty : _customerName; }
            set { _customerName = value; }
        }

        /// <summary>
        /// 配置对象
        /// </summary>
        public ViaSiteConfigModel ConfigModel { get; set; }
    }
}
